<script type="text/javascript" src="__ROOT__/Public/Js/menu/menu.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Js/menu/cookie.js"></script>

    <script type="text/javascript" src="__ROOT__/Public/Js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="__ROOT__/Public/Js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
    <script type="text/javascript">
        $(document).ready(function() {
            	       $(".iframe").fancybox({
				'width'				: '55%',
				'height'			: '45%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
        });
    </script>

    
<div id="sidebar">
    <div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->

        <h1 id="sidebar-title"><a href="#">去玩吗？</a></h1>

        <!-- Logo (221px wide) -->
        <a href="#"><img id="logo" src="../Public/images/logo.png" alt="Simpla Admin logo" /></a>

        <!-- Sidebar Profile links -->
        <div id="profile-links">
            <if condition="Session::get(C('USER_AUTH_KEY')) neq ''">欢迎回来！ {$Think.session.admin} | <a href="__APP__/Toolbox/modify" class="iframe">修改帐号</a> | <a href="__APP__/Toolbox/cache" class="iframe">清除缓存</a> | <a href="__APP__/Toolbox/navigation" class="iframe">设置导航</a> | <a href="__ROOT__/index.php" target="_blank">网站主页</a> | <a href="__APP__/Public/logout">注销</a><else /></if>
        </div>

        <ul id="main-nav" class="menu">
            <volist name="menu" id= "vo">
                <li>
                    <a class="nav-top-item " href="#">{$key}</a>
                    <ul>
                        <volist name="vo" id= "sub">
                            <li><a href="__APP__/{$sub}" class="<?php echo strpos(__URL__,$sub)?'current':'';?>">{$key}</a></li>
                        </volist>
                    </ul>
                </li>
            </volist>
        </ul> <!-- End #main-nav -->

    </div>
</div> <!-- End #sidebar -->